import request from '@/utils/request'

// 方案切换记录列表
export function switchList(query) {
    return request({
        url: `/system/schemechange/list`,
        method: 'get',
        params: query
    })
}

// 方案切换记录详情
export function switchInfo(query) {
    return request({
        url: `/system/schemechange/${query}`,
        method: 'get',
    })
}

// 新增方案切换记录
export function addSwitch(data) {
    return request({
        url: '/system/schemechange',
        method: 'post',
        data: data
    })
}

// 修改方案切换记录
export function updateSwitch(data) {
    return request({
        url: '/system/schemechange',
        method: 'put',
        data: data
    })
}

// 删除方案切换记录
export function delSwitch(configId) {
    return request({
        url: '/system/schemechange/' + configId,
        method: 'delete'
    })
}

// 导出方案切换记录
export function exportSwitch(data) {
    return request({
        url: '/system/schemechange/export',
        method: 'post',
        data: data
    })
}


